/*
 * @Description: 
 * @Author: 赵大壮
 * @Date: 2024-07-21 17:04:05
 * @LastEditTime: 2024-07-23 14:15:12
 * @LastEditors: 赵大壮
 */
import nyNetwork from "@/api/nyBaseNetwork";
import DZModelPage from "@/model/DZModelPage";
import DZModelFeedback from "../model/DZModelFeedback";

class DZServiceFeedback {

    list_feed: Array<DZModelFeedback> = [];

    m_feed = new DZModelFeedback();

    m_page = new DZModelPage(10);

    net_list_feed() {
        var arr_data = []
        nyNetwork.net("意见反馈", { ...this.m_page }, data => {
            this.m_page.total = data.total;
            for (const item of data.list) {
                var model = new DZModelFeedback();
                model.question = item.sQuestion ?? '';
                model.iamge = nyNetwork.image(item.iImage);
                model.from = item.sStaffName ?? '';
                model.phone = item.sStaffPhone ?? '';
                model.createTime = item.createTime ?? '';
                model.sDepartmentName = item.sDepartmentName ?? '';
                model.sCompanyName = item.sCompanyName ?? '';
                arr_data.push(model);
            }
            this.list_feed = arr_data;
        })
    }

}
export default DZServiceFeedback;